package daily;

public class TraditionalThread {
	public static void main(String[] args) {
		Thread simple = new Thread() {

			@Override
			public void run() {
				try {
					Thread.sleep(500);
				} catch (InterruptedException e) {
					e.printStackTrace();
				}
				System.out.println("1-- " + Thread.currentThread().getName());
				System.out.println("2-- " + this.getName());
			}

		};
		simple.start();

		Thread simple2 = new Thread(new Runnable() {

			@Override
			public void run() {
				try {
					Thread.sleep(500);
				} catch (InterruptedException e) {
					e.printStackTrace();
				}
				System.out.println("1-- " + Thread.currentThread().getName());
			}

		});
		simple2.start();

	}
}
